<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title th:text="'\u4f60\u597d'">Insert title here</title>

<link rel="stylesheet" href="css/1140.css" th:href="@{/css/1140.css}" type="text/css" media="screen" />
	
<link rel="stylesheet" href="css/normalize.css" th:href="@{/css/normalize.css}"/>
<link rel="stylesheet" href="css/main.css" th:href="@{/css/main.css}"/>
<link rel="stylesheet" href="css/css.css" th:href="@{/css/css.css}"/>
    
<script src="js/vendor/modernizr-2.6.2.min.js" th:src="@{/js/vendor/modernizr-2.6.2.min.js}"></script>
<script src="js/vendor/css3-mediaqueries.js" th:src="@{/js/vendor/css3-mediaqueries.js}"></script>

<script src="http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js" th:src="@{http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js}"></script>
<script th:inline="javascript">/*<![CDATA[*/
window.jQuery || document.write('<script src="'+ /*[[@{/js/vendor/jquery-1.9.0.min.js}]]*/ 'js/vendor/jquery-1.9.0.min.js'
		+'"><\/script>')
/*]]>*/</script>
<script src="js/plugins.js" th:src="@{/js/plugins.js}"></script>
<script src="js/main.js" th:src="@{/js/main.js}"></script>
<script src="ckeditor/ckeditor.js" th:src="@{/ckeditor/ckeditor.js}"></script>
<script type="text/javascript" th:inline="javascript">
/*<![CDATA[*/
$(function(){
	//$('#ckeditor').
});
/*]]>*/
</script>
</head>
<body>
<form th:action="${broker}?@{/admin/broker/update}:@{/admin/broker/add}" method="post" accept-charset="utf-8" onsubmit="document.charset='utf-8';">
<input type="hidden" name="id" th:if="${broker}" th:value="${broker.id}"/>
<label th:text="#{admin.broker.add.brokername}"></label> <input name="name" th:value="${broker}?${broker.name}"/> <br/>
<label th:text="#{admin.broker.add.logo}"></label> <input name="brokerImgUrl" th:value="${broker}?${broker.brokerImgUrl}"/> <br/>
<label th:text="#{admin.broker.add.minopen}"></label> <input name="minOpen" th:value="${broker}?${broker.minOpen}"/> <br/>
<label th:text="#{admin.broker.add.mintrade}"></label> <input name="minTrade" th:value="${broker}?${broker.minTrade}"/> <br/>
<label th:text="#{admin.broker.add.maxtrade}"></label> <input name="maxTrade" th:value="${broker}?${broker.maxTrade}"/> <br/>
<label th:text="#{admin.broker.add.maxleverage}"></label> <input name="maxLeverage" th:value="${broker}?${broker.maxLeverage}"/> <br/>
<label th:text="#{admin.broker.add.spread}"></label> <input name="spread" th:value="${broker}?${broker.spread}"/>
<label th:text="#{admin.broker.add.regulation}"></label> <input name="regulationInfo" th:value="${broker}?${broker.regulationInfo}"/> <br/>
<label th:text="#{admin.broker.add.reflink}"></label> <input name="refLink" th:value="${broker}?${broker.refLink}"/> <br/>
<label th:text="#{admin.broker.add.country}"></label> <input name="country" th:value="${broker}?${broker.country}"/> <br/>
<label th:text="#{admin.broker.add.founded}"></label> <input name="founded" th:value="${broker}?${broker.founded}"/> <br/>
<label th:text="#{admin.broker.add.haschinese}"></label> <input name="hasChinese" th:value="${broker}?${broker.hasChinese}"/> <br/>
<label th:text="#{admin.broker.add.haschinaoffice}"></label> <input name="hasChinaOffice" th:value="${broker}?${broker.hasChinaOffice}"/> <br/>
<label th:text="#{admin.broker.add.tradeplatform}"></label> <input name="tradePlatform" th:value="${broker}?${broker.tradePlatform}"/> <br/>
<label th:text="#{admin.broker.add.unionpay}"></label> <input name="unionPay" th:value="${broker}?${broker.unionPay}"/> <br/>
<label th:text="#{admin.broker.add.tradekind}"></label> <input name="tradeKind" th:value="${broker}?${broker.tradeKind}"/> <br/>
<label th:text="#{admin.broker.add.contact}"></label> <input name="contact" th:value="${broker}?${broker.contact}"/> <br/>
brokerDesc: <textarea class="ckeditor" name="brokerDesc" th:text="${broker}?${broker.brokerDesc}"></textarea>
(actived)
<input type="hidden" name="active" value="true" th:type="${broker}?'text':'hidden'" th:value="${broker}?${broker.active}:'true'"/>
(order 1)
<input type="hidden" name="order" value="1" th:type="${broker}?'text':'hidden'" th:value="${broker}?${broker.order}:'1'"/>
<input type="submit"/>
</form>
</body>
</html>